<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>打字游戏</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="settings">
        <button id="settings-btn" title="设置">
            <i class="fas fa-cog"></i>
        </button>
        <div id="settings" class="settings-panel hide">
            <form id="settings-form">
                <div class="settings-group">
                    <label for="difficulty">难度</label>
                    <select id="difficulty">
                        <option value="easy">简单</option>
                        <option value="medium" selected>中等</option>
                        <option value="hard">困难</option>
                    </select>
                </div>
            </form>
        </div>
    </div>

    <div class="game-container">
        <h1>打字游戏</h1>
        <div id="word"></div>
        <input type="text" id="text" autocomplete="off" placeholder="输入上面的单词...">
        <div class="game-info">
            <p class="time-container">剩余时间: <span id="time">10</span>秒</p>
            <p class="score-container">得分: <span id="score">0</span></p>
        </div>
    </div>

    <div id="end-game-container" class="hide">
        <div class="end-game-content">
            <h2>游戏结束!</h2>
            <p>你的最终得分是: <span id="final-score">0</span></p>
            <button id="restart-btn">再玩一次</button>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>